package com.cxs.distributedencrypt;

import com.cxs.distributedencrypt.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.ability.IAbilityContinuation;
import ohos.aafwk.content.Intent;
import ohos.aafwk.content.IntentParams;

public class MainAbility extends Ability{
    private String[] permisssion = new String[]{
            "ohos.permission.DISTRIBUTED_DATASYNC"
    };

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
        requestPermissionsFromUser(permisssion, 0);
    }

}
